package com.skyjoo.search.test.goods;

import org.apache.lucene.document.Document;

import com.skyjoo.search.lucene.index.search.Callback;
import com.skyjoo.search.lucene.index.search.LuceneIndexSearcher;

public class GoodsSearchServiceImpl implements GoodsSearchService {

    private LuceneIndexSearcher indexSearcher;

    @Override
    public void search(GoodsQuery query) {

        indexSearcher.search(query, new Callback<Goods>() {

            @Override
            public Goods convertFrom(Document document) {
                return new Goods();
            }
        });

    }

}
